module.exports = function(grunt) {

    grunt.initConfig({

        pkg: grunt.file.readJSON('package.json'),


        transport : {
            sffruit : {
                files : {
                    '.build' : [
                        './static_v3/js/test/searchListTest.js',
                        './static_v3/js/historyCookie.js',
                        './static_v3/js/addcar_quick.js',
                        './static_v3/js/common.js',
                        './static_v3/js/webcall_message.js',
                        './static_v3/js/searchList_sea.js',
                        './static_v3/js/public.js'

                    ]
                }
            }
        },



        concat : {
            sffruit : {
                files : {
                    './static_v3/js/minJS/searchList.js' : [
                        'static_v3/js/plug/jquery.min.js',
                        'static_v3/js/plug/hammer.min.js',

                        'static_v3/js/plug/lazyload_echo.js',
                        'static_v3/js/plug/layer/layer.js',

                        'static_v3/js/shop.js',
                        'static_v3/js/baiduCount.js',

                        '.build/static_v3/js/test/searchListTest.js',
                        '.build/static_v3/js/historyCookie.js',
                        '.build/static_v3/js/common.js',
                        '.build/static_v3/js/addcar_quick.js',
                        '.build/static_v3/js/webcall_message.js',
                        '.build/static_v3/js/searchList_sea.js',
                        '.build/static_v3/js/public.js'

                    ]
                }
            }
        },

        uglify : {
            sffruit : {
                files : {
                    './static_v3/js/minJS/searchList.min.js' : [
                        'static_v3/js/minJS/searchList.js'
                    ]
                }
            }
        },


    });

    grunt.loadNpmTasks('grunt-cmd-transport');

    grunt.loadNpmTasks('grunt-contrib-concat');

    grunt.loadNpmTasks('grunt-contrib-uglify');

    grunt.registerTask('default', ['transport','concat','uglify']);
    //grunt.registerTask('default', ['transport','concat']);


};